package hjt.com.module_test.activity;

import androidx.databinding.DataBindingUtil;
import android.os.Bundle;
import androidx.annotation.Nullable;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.tong.lib.mvp.BaseMvpActivity;

import hjt.com.componentbase.constant.ARouterConstants;
import hjt.com.module_test.R;
import hjt.com.module_test.contract.TestConstract;
import hjt.com.module_test.databinding.TestActivityTestBinding;
import hjt.com.module_test.fragment.TestFragment;
import hjt.com.module_test.presenter.TestPresenter;

@Route(path = ARouterConstants.ACTIVITY_TEST_TEST)
public class TestActivity extends BaseMvpActivity<TestPresenter> implements TestConstract.View {

    private TestActivityTestBinding mBinding;

    @Override
    protected int getLayoutResID() {
        return R.layout.test_activity_test;
    }

    @Override
    protected void init(Bundle savedInstanceState) {
        getSupportFragmentManager().beginTransaction()
                .add(R.id.fl_container, new TestFragment())
                .commit();
    }

    @Override
    protected void initDataBinding(int layoutResID) {
        mBinding = DataBindingUtil.setContentView(this, layoutResID);
    }

    @Override
    protected boolean isDataBinding() {
        return true;
    }

    @Override
    protected void initEvent() {

    }

    @Override
    public void showsdsddf() {
    }
}
